# !/usr/bin/env python
# -- coding: utf-8 --
# author：wang time:2024/11/10
import os
os.mkdir("img")
for i in range(10):
    with open(f'img/X4G5{i}.png',"w"):
        pass
for filename in os.listdir('img'):
    if filename.endswith('.png'):
        new_filename=filename[:-4]+'.jpg'
        os.rename(os.path.join('img',filename),os.path.join('img',new_filename))



